Skip to content

Latest commit

 

History

History

Lost flag

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Lost flag

Author: Marin Radu


Description

Decode multiple QR codes from a single image, filtering out fake flags and identifying the real one.

Requirements

  • Automation
  • QR decoding
  • Regex

Solve

When you decode all the QR codes, you get an endpoint that doesn't exist in my CTF, a bunch of fake flags in the form of hex strings, and the flag, rendered only once.

The trick is to separate the real flag from all the fake ones. You do this using regex, looking for the pattern of 17 hex chars:

match = re.match(r"CSCTF{([0-9A-F]{17})}", s)

Solution script.


Flag: CSCTF{g0od_ch01c3_budDy}